<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-cloak] {
            display: none;
        }
    </style>
</head>

<body>
    <div id="app">
        <div>{{liang}}</div>
        <div v-once>{{name}}</div>
        <!-- v-once 只能渲染元素一次，或者数据，哪怕你在终端更改数据，页面上还是不会更改的 -->
    </div>
    <script src="../vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                liang: '凉凉',
                name: '三生三世十里桃花'
            }
        })
    </script>
</body>

</html>